/*
 * Copyright (c) 2020, 2023, 3044483124@qq.com All rights reserved.
 *
 */
package itcast;

import java.util.Random;

/**
 * <p>Project: JavaStudy - HopeCheck
 * <p>Powered by jiangbo On 2023-02-04
 * 16:08:36
 * <p>Created by IntelliJ IDEA
 *
 * @author jiangbo [3044483124@qq.com]
 * @version 1.0
 * @since 8/17
 */
public class HopeCheck {
    public static void main(String[] args) {
        Random Rand = new Random();
        String[] role = {"1","2","3","五星角色","5","6","7","8","9","10",
                "11","12","13","14","四星角色","16","17","18","19","20"};
        //
        //int Check = (int) Math.round(Math.random()*9);
        System.out.println(role.length);
        /*for (int i=1;i<20;i++){
            System.out.println(Check);
        }*/
        for (int i=1;i<2000;i++){
            int Check =Rand.nextInt(0,20);
            System.out.printf("恭喜获得 %s%n",role[Check]);
        }

    }
}


